<?php
// +----------------------------------------------------------------------
// | Leaps Framework [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2011-2014 Leaps Team (http://www.tintsoft.com)
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author XuTongle <xutongle@gmail.com>
// +----------------------------------------------------------------------
return [
		'cache' => [
				//'className' => '\Leaps\Cache\FileCache',
				'cachePath' => '@Runtime/Cache',
				'keyPrefix'=>'yun',
				'cacheFileSuffix' => '.bin'
		],
		'event' => [
				'className' => 'Leaps\Event\Dispatcher'
		],
		'registry' => [
				'className' => 'Leaps\Registry'
		],
		'crypt' => [
				'key' => '123456798'
		],
		'cache2' => [
				'className' => '\Leaps\CacheMemCache',
				'server' => [
						'host' => '127.0.0.1',
						'port' => 11211,
						'weight' => 1,
						/**
						 * 是否使用持久连接
						 */
						'persistent' => true,
						'timeout' => 1000
				]
		],
		'log' => [
				'traceLevel' => 3,
				'targets' => [
						[
								'className' => 'Leaps\Log\FileTarget',
								'levels' => [
										'trace',
										'error',
										'warning'
								]
						]
				]
		],
		'sms' => [
				'className' => '\Leaps\Base\ErrorHandler',
				'account' => 'sdk_fadsndao',
				'password' => '2689901881a21'
		],
		'errorHandler' => [
				'className' => '\Leaps\Web\ErrorHandler'
		],

		'router' => [  // 开启URL重写
				'enablePrettyUrl' => true,
				// 显示脚本名称
				'showScriptName' => false,
				// 自定义后缀
				'suffix' => '',
				// 路由规则
				'rules' => require_once 'router.php'
		]
];